package com.msb.monitor.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;
import java.util.Set;

/**
 * @Author: lmf
 * @Create: 2025/3/24 14:52
 * @module
 */

@FeignClient(name = "beacon-cache")
@RequestMapping("/cache")
public interface CacheClient {

    @PostMapping(value = "/keys/{pattern}")
    Set<String> keys(@PathVariable String pattern);

    @GetMapping(value = "/hGet/{key}/{field}")
    Long hGetToLong(@PathVariable(value = "key") String key, @PathVariable(value = "field") String field);
}
